from django.urls import path
from .views import HrChatHistoryView, HrChatView, HrImageUploadView
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # 企业人事助手历史记录接口
    path('api/coze/hr-history/', HrChatHistoryView.as_view(), name='hr-history'),
    # 企业人事助手聊天接口
    path('api/coze/hr-chat/', HrChatView.as_view(), name='hr-chat'),
    # 企业人事助手图片上传接口
    path('api/coze/hr-upload-image/', HrImageUploadView.as_view(), name='hr-upload-image'),
]

# 开发环境下添加媒体文件URL配置
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)